<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:composite="http://java.sun.com/jsf/composite"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:head>
</h:head>
<h:body>
	<composite:interface>
		<composite:attribute name="detailView" required="true"
			type="com.sunrise.xdoc.view.details.AbstractDetailView" />
	</composite:interface>

	<composite:implementation>
		<p:panelGrid style="width:100%">
			<ui:repeat var="attr"
				value="#{cc.attrs.detailView.detailDataModel.detailAttributes}">
				<p:row>
					<p:column>
						<p:outputLabel for="" value="#{TODO }" />
					</p:column>
					<p:column>
						<c:choose>
							<c:when test="#{attr.type == 'TEXTFIELD'}">
								<p:inputText for="" value="#{detailView.attributeEntityDelegator(attr.name)}" />
							</c:when>
							
						</c:choose>
					</p:column>
				</p:row>
			</ui:repeat>
		</p:panelGrid>
	</composite:implementation>
</h:body>
</html>